nba = ["迈克尔·乔丹","比尔·拉塞尔","卡里姆·阿卜杜尔·贾巴尔","威尔特·张伯伦","埃尔 文·约翰逊",
       "科比·布莱恩特","蒂姆·邓肯","勒布朗·詹姆斯","拉里·伯德","沙奎尔·奥尼尔"]
#定义一个列表
print(nba[1:5])
print(nba[0:5:2])

print(nba[:])
print(nba[::])
# print(nba[])
print(nba[0])
print(nba[:1])
print(nba[:0])
print(nba[::1])

#序列相加
nba2=[1,2,3,4,5,6,7,8,9]
print(nba+nba2)

